package rpc.health;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import rpc.client.RpcClientHandler;

import java.net.InetSocketAddress;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

@Configuration
public class HealthPool {


    @Bean
    public Map<InetSocketAddress, RpcClientHandler> subHealthAddress(){
        return new ConcurrentHashMap<>();
    }

    @Bean
    public Map<InetSocketAddress, RpcClientHandler> unHealthAddress(){
        return new ConcurrentHashMap<>();
    }

    @Bean
    public Map<InetSocketAddress, RpcClientHandler> healthAddress(){
        return new ConcurrentHashMap<>();
    }


}
